package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户Mapper接口
 *
 * @author example
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    
    /**
     * 根据年龄查询用户
     */
    @Select("SELECT * FROM user WHERE age > #{age}")
    List<User> selectByAge(Integer age);
} 